HolographWallet
Services • API
Holograph SDK Reference / Services / HolographWallet
Class: HolographWallet
HolographWallet
Remarks
Manages a HolographAccount, allowing users to interact with their account into the through the configured networks.
Constructors
new HolographWallet(__namedParameters)
new HolographWallet(
__namedParameters
):HolographWallet
Parameters
• __namedParameters: HolographWalletArgs
Returns
Source
packages/sdk/src/services/wallet.service.ts:83
Properties
_account
private
_account:HolographAccount
Source
packages/sdk/src/services/wallet.service.ts:79
_logger
private
readonly
_logger:HolographLogger
Source
packages/sdk/src/services/wallet.service.ts:78
_multiChainWalletClient
private
_multiChainWalletClient:Record
<number
,object
&PublicActions
> ={}
Source
packages/sdk/src/services/wallet.service.ts:81
_networks?
private
optional
_networks:Network
[]
Source
packages/sdk/src/services/wallet.service.ts:80
Accessors
account
get
account():HolographAccount
Returns
HolographAccount
Source
packages/sdk/src/services/wallet.service.ts:116
Methods
isBalanceSufficientForTx()
isBalanceSufficientForTx(
chainId
,gasPrice
,gasLimit
,value
):Promise
<boolean
>
Parameters
• chainId: number
• gasPrice: bigint
• gasLimit: bigint
• value: bigint
= undefined
Returns
Promise
<boolean
>
Source
packages/sdk/src/services/wallet.service.ts:133
onChain()
onChain(
chainId
):object
&PublicActions
Parameters
• chainId: number
Returns
object
& PublicActions